
export function formatTableResult(response) {
  const { result, pagination } = response;
  const pageSize = 20;
  return {
    result: result || [],
    pagination: {
      ...pagination,
      showQuickJumper: true,
      defaultPageSize: pageSize,
      totalPage: Math.ceil(pagination.total/pageSize),
    },
  }
}

export const defaultPagination = {
  pageSize: 20,
  page: 1,
};




export const goodsResponse = {
  status: 'ok',
  result: [
    {
      id: 37,
      username: '彭刚',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '开名学地农经名使开题报应心场音。志带西容认习可极数成商以定府龙。参术派程布带派名确使很严于。义斗今物压商眼生专求清最们每每。',
      price: 198.88,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 7,
      username: '苏杰',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '价则六府活市保电家很习且。实提解题着又斗容土办队史。命可拉出设象我接月联式万中并。情六石月形算四便得第今利该属克广由。达场外定强马适却百真是省场务。山外应几率报导长和海料府温们常山。',
      price: 154.5,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 95,
      username: '李刚',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '面段始关被合率规音地联高确规。新式布想成是等口务行即上例小存类。长专应经气集米次叫产点真京。局华二资地见济合内划确等段影克。',
      price: 198.39,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 91,
      username: '于秀英',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '此话思外看候些太果万命历知低名往。示增根日道确明其门元边公东。织国器前思话月件要得该展海果。样际米很些根的先再能受门会从。般内知性化为养题共行已别不。',
      price: 58.69,
      unit: '个',
      pictures: ['http://dummyimage.com/200x200/b7e8e8'],
    },
    {
      id: 23,
      username: '刘强',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '来这起水量清不线律效和以可。很进关九大中团问满做国四公。白统今级半军包他样住它定量决。需非先共组持得时受队值高酸百。世红采根引教门立类何住按之口。接之团存关圆少全务委间住率比经。',
      price: 114.6,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 70,
      username: '金军',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '话正群种道流感数方音党自。东住之今本下于传表音因表金律有行传。王青石家时国容求产育应认战。派什再程公定需就阶光消酸观决深。商量直支细引性则加日电统接联能。布原治省万细时热深除适才学观西好组装。',
      price: 181.13,
      unit: '个',
      pictures: ['http://dummyimage.com/200x200/b7e8e8'],
    },
    {
      id: 51,
      username: '黄明',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '易子连品各价才你构叫流都后大求改局年。示从造代大知子往民办知号记空过极。七圆列流当的器速收总治一省。上华它上界于农具往众自商展做。火青中广三六组段入直一化大太。',
      price: 124.1,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 95,
      username: '曾秀英',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '于干置点构周进内状将手而克报由了。给一证题率被广深毛统整到片。要参府整被越工般位或四更是华大非。部法交别议一南整整机直资验先存。',
      price: 191.87,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 53,
      username: '张丽',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '色量什或形这能影我地二果划活话毛。战自义千科一极收通族进江是。都专术快选将后建只构多却型政精科治。条规得场外变年合育新产志调并取气队石。',
      price: 194.39,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 41,
      username: '江秀兰',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '音能代头今行气身圆地济受权联。全已便状学许向变第手酸见布律品身面月。美型王政去志第厂低拉白设商世张广。亲比斗运温也长天统加争江原积。',
      price: 167.34,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 43,
      username: '乔娜',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '各真解合说影志持人般得易存林。集么把层电着方三象转安关治百。上子毛例百文属克海军种保。并火始四基在联劳比导明于圆。件展部例术四化治界龙法先力花比养。越使间正基车自社特大候气前备样那带也。',
      price: 74.74,
      unit: '个',
      pictures: ['http://dummyimage.com/200x200/b7e8e8'],
    },
    {
      id: 45,
      username: '李霞',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '值计个本精王张者但眼月状此类论了七。她被何对经算名结单当步参候听交动。前件组系她合会报技酸面通八下自建。身教意感路新而果百治养非五小果。上条定周和从书件员需内大团气划据。',
      price: 111.5,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 19,
      username: '顾军',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '常流备改标气共风圆况革名。数题能而委员更数务连才低养生调。酸包计那群活装例易千受你必件带型土几。八展思美称观结断历员任个委包车。解住节没然事重算政几青传反属离。者消进他花受机适反当质林角。没指关院许见志而向米拉化张知。',
      price: 165.63,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 63,
      username: '黎强',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '段史历进各米及争话头原却中北示新劳。群求类计知保进基般干日列米发值先所从。回队干里内科县治气律小段立。内千完王精南转拉运放步展个机。例保调火什年安族问书月到布务省满。整点重花结电见体派示层资想社。打完日便且手类东天万自商百明者儿越。',
      price: 95.61,
      unit: '个',
      pictures: ['http://dummyimage.com/200x200/b7e8e8'],
    },
    {
      id: 44,
      username: '锺杰',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '油南社了特进认法指次利却没却农路。用需五斗间算放酸深他气决感。百难据么北厂去着什山王力达所。',
      price: 90.7,
      unit: '个',
      pictures: ['http://dummyimage.com/200x200/b7e8e8'],
    },
    {
      id: 95,
      username: '田静',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '光证边共研而务劳加总界他非直。加革度例特很属她拉第办联问。不济此性带区子总把子需作进期常传。',
      price: 40.97,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 77,
      username: '汪超',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '任教立强事下技它干代两三清电两。真养满布技效受道还制压由在十回离常。消子些亲与队际精其志龙克才张争。于自而把地心时意眼认解政京。特他且石任门定九后样布身成气便地要。龙压难年引五被只观向为二际。',
      price: 45.87,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 95,
      username: '龙霞',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '团解支如第即照复几备委都加员。西联力没科面教先示大还看同产周。问却意没团华重重严表在想团学已年。记传油便数深广东省细音体加石。此行决大而格族入它会所那。',
      price: 96.4,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
    {
      id: 36,
      username: '邵磊',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '切地所无增长性入段查局成走约。东量生主切该里四三克保二水该更或生。也党响状王化式人业还况听律样信是。满写气车例可议金才上导自县情厂。高政半基下算改每水理亲县形观布也。',
      price: 163.2,
      unit: '个',
      pictures: ['http://dummyimage.com/200x200/b7e8e8'],
    },
    {
      id: 3,
      username: '郭平',
      avatar: 'http://dummyimage.com/200x200/50B347',
      description:
        '该八议设北体制计件几子无共会看。口列命少计层清记入提片阶他比商六。拉治清新强四快活许感开日较会百术定。需果易半龙入们北加平前住回声物且结。龙济研民期气明整日易报空京厂。海府心习府红国维局展表非。王向确确究写里难府率世直。',
      price: 152.16,
      unit: '个',
      pictures: [
        'http://dummyimage.com/200x200/b7e8e8',
        'http://dummyimage.com/200x200/b7e8e8',
      ],
    },
  ],
  pagination: { total: 100, page: 1, pageSize: 40 },
};


export const goodResponse = {
  status: 'ok',
  result:  {
    id: 37,
    username: '彭刚',
    avatar: 'http://dummyimage.com/200x200/50B347',
    description:
      '开名学地农经名使开题报应心场音。志带西容认习可极数成商以定府龙。参术派程布带派名确使很严于。义斗今物压商眼生专求清最们每每。',
    price: 198.88,
    unit: '个',
    pictures: [
      'http://dummyimage.com/200x200/b7e8e8',
      'http://dummyimage.com/200x200/b7e8e8',
    ],
  }
};